<%@ taglib prefix="jstl" uri="http://java.sun.com/jsp/jstl/core" %>

<%@page contentType="text/html" pageEncoding="UTF-8" %>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>用户注册
    </title>
    <link rel="stylesheet" type="text/css" href="/css/main.css">
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
    <script src="/js/jquery-1.12.4.min.js"></script>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="/js/bootstrap.min.js"></script>
    <style>
        .container input {
            width: 100%;
        }

        .container div {
            margin: 5px 0px;
        }
    </style>

    <script>
        $(document).ready(function(){
            $("#back").click(function(){
                window.history.back(-1);
            });
        });
    </script>


    <script>
        $(document).ready(function(){
            $("#hide").click(function(){
                $("#pp").hide();
            });
            $("#show").click(function(){
                $("#pp").show();
            });
        });
    </script>
</head>
<body style="background: url('../img/background.jpg')">
<!-- 很多页面都使用这个顶部栏，所以拿出来放到一个单独文件中 -->
<!-- 很多页面都使用这个顶部栏，所以拿出来放到一个单独文件中 -->
<div style="text-align: center;">
    <div class="container" style="width: 400px;margin: 10px auto;text-align: left; ">
        <form method="POST" action="/Manager/copyupdateGood">
            <div class="row">
                <div class="row">
                    <div class="ol-lg-3 col-md-3 col-sm-3 col-xs-3"></div>
                    <div class="ol-lg-6 col-md-6 col-sm-6 col-xs-6" style="text-align: center">
                        <strong style="color: #c9e2b3;">超贝订餐系统</strong>
                    </div>
                    <div class="ol-lg-3 col-md-3 col-sm-3 col-xs-3"></div>
                </div>
                <div class="row">
                    <div class="ol-lg-3 col-md-3 col-sm-3 col-xs-3"></div>
                    <div class="ol-lg-6 col-md-6 col-sm-6 col-xs-6" style="text-align: center">
                        <em style="color: #c9e2b3;">修改菜品信息</em>
                    </div>
                    <div class="ol-lg-3 col-md-3 col-sm-3 col-xs-3"></div>
                </div>
                <div class="row">
                <div class="col-md-12">
                    <input type="text" name="name" placeholder="菜名" value="${goods.name}"/>
                </div>
            </div>
            <div class="row">
                <div class="col-md-12">
                     <input type="text" name="price" placeholder="价格" value="${goods.price}" />
                </div>
            </div>
                <div class="row">
                    <div class="col-md-3" style="text-align: right">
                        <%--性别： <input type="text" name="sex"/>--%>
                        <p style="color:mintcream;">特价</p>
                    </div>
                    <div class="col-md-3" style="text-align: left">
                        <input type="radio" id="show"  name="isfree" value="yes" checked />
                    </div>
                    <div class="col-md-3" style="text-align: right">
                        <p   style="color:mintcream;">NO</p>
                    </div>
                    <div class="col-md-3" style="text-align: left">
                        <input type="radio"id="hide" name="isfree" value="no">
                    </div>
                </div>
            <div class="row">
                <div class="col-md-12">
                  <input id="pp" type="text" name="freeprice" placeholder="特价价格" ${goods.freeprice}/>
                </div>
            </div>
            <div class="row" style="border-top:solid 1px;">
                <div class="col-sm-12">
                    <input type="submit" name="role" value="确定"/>
                </div>
            </div>
                </div>
        </form>
<div class="col-sm-12">
            <input type="submit" id="back" name="role" value="返回"/>
        </div>
    </div>

        <div class="row" style="color: red">
            ${errMsg}
        </div>
    </div>
</div>
</body>
</html>
